FROM java:8u111

VOLUME /tmp

ADD *.jar app.jar

ENTRYPOINT ["sh", "-c", "java -XX:+UseG1GC -Xmx1024m -XX:MaxGCPauseMillis=200 -Duser.timezone=GMT+08 -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]

# Ubuntu 时区
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime